<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        let data = [
            {title:"NBA空砍群再添神人，沃克60分创个人新高但输球了",read:140},
            {title:"法国28万人示威游行，他们因为油价太贵围堵了总统府",read:120},
            {title:"一顿饭顶半月工资，这家餐厅曾连干部都吃不起，如今却“烂大街”",read:130},
            {title:"南京高淳马拉松雨中开跑 12000人共同“蟹”逅“慢马”",read:160}
        ];

        window.onload = function(){
            let url1 = document.querySelectorAll("#ul1")[0];
            for(let i = 0;i<data.length;i++){
                let oLi = document.createElement('li');
                // oLi.innerHTML = '<span>' + data[i].title +'</span>'
                // +'<span>阅读人数：' + data[i].read + '</span>'
                // +'<a href="javascript:;">详情</a>';

                oLi.innerHTML = `<span>${data[i].title}</span>
                <span>阅读人数:${data[i].read}</span><a href="javascript:;">详情</a>`;
                url1.appendChild(oLi);
            }
        }

    </script>
</head>
<body>
    <ul id="ul1">
        
    </ul>
</body>
</html>